|
Public Types |
| typedef char | deString_char |
| enum | string_flag { search_forwards = 0,
search_backwards,
flag_32bit = 0x7fffffff
} |
Public Member Functions |
| | deString2 () |
| | deString2 (const deString_char *ref) |
| | deString2 (const deString2 &ref) |
| | ~deString2 () |
| void | reserve (long max_size) |
| void | resize (long size) |
| long | size () const |
| | get the length of the string
|
| void | SetCaseSensitivity (deBoolean Sensitive) |
| const deString_char * | const_str () const |
| | get a const C-string without creating a copy of the data
|
| deString_char | get_at (long index) const |
| | get a character at an offset from the start of the string
|
| void | set_at (long index, deString_char ch) |
| | [write] set a character at an offset from the start of the string
|
| deString2 | operator+ (const deString2 &rhs) const |
| | create a new string containing this string and another string appended
|
| void | operator+= (const deString2 &rhs) |
| | [write] append another string onto this one
|
| void | operator+= (const deString_char *str) |
| | [write] append another string onto this one
|
| void | operator= (const deString2 &rhs) |
| | [write] assign another string to this one
|
| bool | operator== (const deString2 &rhs) const |
| | test equality, using current case-sensitivity setting.
|
| bool | operator!= (const deString2 &rhs) const |
| | test equality, using current case-sensitivity setting.
|
| bool | operator== (const deString_char *rhs) const |
| | test equality, using current case-sensitivity setting.
|
| bool | operator!= (const deString_char *rhs) const |
| | test equality, using current case-sensitivity setting.
|
| bool | operator< (const deString2 &rhs) const |
| | test equality, using current case-sensitivity setting.
|
| bool | operator< (const deString_char *rhs) const |
| | test equality, using current case-sensitivity setting.
|
| void | Replace (deString_char find, deString_char replace) |
| | [write] replace all instances of 'find' with 'replace'
|
| long | Find (deString_char find, long start_at=0, string_flag search_order=search_forwards) const |
| void | Trim (long newsize) |
| | [write] cut the string down to at most length 'newsize', discarding any characters past that size.
|
| deString2 | DropChars (const deString2 &Chars) const |
| deString2 | SubString (int start, int stop) const |
| | retrieve a sub-string over the half-open intervace [start,stop)
|
| void | ToLower () |
| | [write] convert this string to lowercase
|
| void | ToUpper () |
| | [write] convert this string to uppercase
|
| u32 | Hash () const |
Private Member Functions |
| void | resizeData (long newlen) |
| void | OwnBuffer () |
| deString_char * | c_str () |
| | deString2 (StringData *ref) |
Private Attributes |
| StringData * | mData |
| deBoolean | mCaseSensitive |